package com.gfl.trivialrestclient.services;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author Bedlam
 */
public interface GenericService<E, PK extends Serializable> {

    public E create(E enity);

    public void delete(PK id);

    public E read(PK id);

    public E edit(PK id, E entity);

    public List<E> readAll();
}
